import { requestMock } from "./index"

//请求拦截器
requestMock.interceptors.request.use((config) => {
  return config
})

//响应拦截器
requestMock.interceptors.response.use(
  (response) => {
    return response.data.data
  },
  (error) => {
    return Promise.reject(error)
  }
)
export default requestMock
